package com.j2ee.constructor;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author ywb
 * @since 2021/9/18
 */
public class BeanTest {
    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("com/j2ee/constructor/Bean1.xml");
        Bean1 bean1 =(Bean1) applicationContext.getBean("bean1");

        System.out.println(bean1);
    }
}
